<template>
  <view>
    <search></search>
    <u-swiper :list="list" name="image_src" height='340'></u-swiper>
  </view>
</template>

<script>
export default {
data () {
  return {
    list: [],
  }
},
async onLoad(){
 let [err,res] = await uni.request({
    url:'https://api-hmugo-web.itheima.net/api/public/v1/home/swiperdata'
  })
  if(err){
	  console.log(err)
	  return
  }
this.list = res.data.message

}
}
</script>

<style>

</style>